package com.ys.entity.business;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TP_DeptUserPoint", catalog="Id")
public class TpDeptUserPoint extends BaseEntity<TpDeptUserPoint> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="OperateCompanyCode", nameJava="operateCompanyCode", typeDataBase="varchar")
	private String operateCompanyCode;
	@YsField(nameDataBase="PointType", nameJava="pointType", typeDataBase="tinyint")
	private Integer pointType;
	@YsField(nameDataBase="PointDeptCode", nameJava="pointDeptCode", typeDataBase="varchar")
	private String pointDeptCode;
	@YsField(nameDataBase="PointUserId", nameJava="pointUserId", typeDataBase="varchar")
	private String pointUserId;
	@YsField(nameDataBase="PointEvent", nameJava="pointEvent", typeDataBase="varchar")
	private String pointEvent;
	@YsField(nameDataBase="PointDetail", nameJava="pointDetail", typeDataBase="text")
	private String pointDetail;
	@YsField(nameDataBase="CreateUser", nameJava="createUser", typeDataBase="varchar")
	private String createUser;
	@YsField(nameDataBase="EffectStock", nameJava="effectStock", typeDataBase="bit")
	private Integer effectStock;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TpDeptUserPoint setId(Long id) {
		this.id = id;
		return this;
	}
	public String getOperateCompanyCode() {
		return operateCompanyCode;
	}
	public TpDeptUserPoint setOperateCompanyCode(String operateCompanyCode) {
		this.operateCompanyCode = operateCompanyCode;
		return this;
	}
	public Integer getPointType() {
		return pointType;
	}
	public TpDeptUserPoint setPointType(Integer pointType) {
		this.pointType = pointType;
		return this;
	}
	public String getPointDeptCode() {
		return pointDeptCode;
	}
	public TpDeptUserPoint setPointDeptCode(String pointDeptCode) {
		this.pointDeptCode = pointDeptCode;
		return this;
	}
	public String getPointUserId() {
		return pointUserId;
	}
	public TpDeptUserPoint setPointUserId(String pointUserId) {
		this.pointUserId = pointUserId;
		return this;
	}
	public String getPointEvent() {
		return pointEvent;
	}
	public TpDeptUserPoint setPointEvent(String pointEvent) {
		this.pointEvent = pointEvent;
		return this;
	}
	public String getPointDetail() {
		return pointDetail;
	}
	public TpDeptUserPoint setPointDetail(String pointDetail) {
		this.pointDetail = pointDetail;
		return this;
	}
	public String getCreateUser() {
		return createUser;
	}
	public TpDeptUserPoint setCreateUser(String createUser) {
		this.createUser = createUser;
		return this;
	}
	public Integer getEffectStock() {
		return effectStock;
	}
	public TpDeptUserPoint setEffectStock(Integer effectStock) {
		this.effectStock = effectStock;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TpDeptUserPoint setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TpDeptUserPoint setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TpDeptUserPoint setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TpDeptUserPoint setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TpDeptUserPoint tpDeptUserPoint(
		String operateCompanyCode,
		Integer pointType,
		String pointDeptCode,
		String pointUserId,
		String pointEvent,
		String pointDetail,
		String createUser,
		Integer effectStock,
		String bid,
		Integer status
			) {
		TpDeptUserPoint entity = new TpDeptUserPoint();
		entity.setOperateCompanyCode(operateCompanyCode);
		entity.setPointType(pointType);
		entity.setPointDeptCode(pointDeptCode);
		entity.setPointUserId(pointUserId);
		entity.setPointEvent(pointEvent);
		entity.setPointDetail(pointDetail);
		entity.setCreateUser(createUser);
		entity.setEffectStock(effectStock);
		entity.setBid(bid);
		entity.setStatus(status);
		return entity;
	}
}